package meterMonitor.mapper;

import meterMonitor.model.User;
import meterMonitor.vo.Page;
import meterMonitor.vo.QueryUserRequest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    /**
     * 查询总数量
     * @param params
     * @return
     */
    int queryCount(@Param("params") QueryUserRequest params);
    /**
     * 分页查询
     * @param params
     * @param page
     * @return
     */
    List<User> queryPage(@Param("params") QueryUserRequest params, @Param("page") Page page);


    int deleteByPrimaryKey(Long pkid);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long pkid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
}